int ty = 0;
Window child_window = 0;
- if (surface_impl->pending_configure_events == 1)
- {
- surface_impl->pending_configure_events = 0;
- gdk_surface_thaw_updates (surface);
- }
- else if (surface_impl->pending_configure_events > 1)
- {
- surface_impl->pending_configure_events--;
- }
-
x = y = 0;
gdk_x11_display_error_trap_push (display);
if (XTranslateCoordinates (GDK_SURFACE_XDISPLAY (surface),
}
else
{
- if (width * impl->surface_scale != impl->unscaled_width || height * impl->surface_scale != impl->unscaled_height)
- surface->resize_count += 1;
+ if (width * impl->surface_scale != impl->unscaled_width ||
+ height * impl->surface_scale != impl->unscaled_height)
+ {
+ surface->resize_count++;
+ if (surface->resize_count == 1)
+ gdk_surface_freeze_updates (surface);
+ }
}
}
}
else
{
- if (width * impl->surface_scale != impl->unscaled_width || height * impl->surface_scale != impl->unscaled_height)
- surface->resize_count += 1;
+ if (width * impl->surface_scale != impl->unscaled_width ||
+ height * impl->surface_scale != impl->unscaled_height)
+ {
+ surface->resize_count++;
+ if (surface->resize_count == 1)
+ gdk_surface_freeze_updates (surface);
+ }
}
}
XEvent *tmp_event;
MoveResizeData *mv_resize = get_move_resize_data (display, FALSE);
+ gdk_surface_thaw_updates (surface);
+ gdk_surface_request_layout (surface);
+
if (!mv_resize || surface != mv_resize->moveresize_surface)
return FALSE;
size.shadow.bottom);
}
- impl->pending_configure_events++;
- if (impl->pending_configure_events == 1)
- gdk_surface_freeze_updates (surface);
-
if (gdk_toplevel_layout_get_maximized (layout))
gdk_x11_surface_maximize (surface);
else